package com.example.linkedlist.bidirectional;

public class Demo {
    public static void main(String[] args) {
        BidirectionalLinkedList bidirectionalLinkedList = new BidirectionalLinkedList();
        Language anime1 = new Language("Java", 1);
        Language anime2 = new Language("C", 2);
        Language anime3 = new Language("C++", 3);
        Language anime4 = new Language("Python", 4);
        bidirectionalLinkedList.addNode1(anime1);
        bidirectionalLinkedList.addNode1(anime2);
        bidirectionalLinkedList.addNode1(anime3);
        bidirectionalLinkedList.addNode1(anime4);
        bidirectionalLinkedList.showNodes();
        bidirectionalLinkedList.deleteNode(4);
        bidirectionalLinkedList.showNodes();
    }
}
